<script lang="tsx">
/**
 * 创想工坊（项目案例）
 */
export default {
  name: "creative-workshop"
}
</script>

<script lang="tsx" setup>
import {onMounted, ref} from "vue";
import {processRequest} from "anqin-framework";

/**
 * 挂载时运行
 */
onMounted(() => {
  getList()
})

/**
 * 获取数据
 */
const dataList: any = ref([])
const getList = async () => {
  const result = await processRequest.get("/api/BlogProjectCase", {
    pageSize: 9999
  })
  dataList.value = result.dataList
}
</script>

<template>
  <div class="creative-workshop">
    <div class="body">
      <div class="list">
        <div v-for="(item,index) in dataList" :key="index" class="item">
          <div class="item-img">
            <img :src="item.image" alt="" class="item-img-logout"/>
          </div>
          <div class="item-name">
            {{ item.name }}
          </div>
          <div class="item-introduce">
            {{ item.introduce }}
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<style lang="scss" scoped src="./index.scss">

</style>